import Vue from 'vue'
import App from './App'
import uView from "uview-ui"
import http from "./apis/http.js"
import apis from './apis/index.js'
import store from './common/store.js'
import { imgUrl } from './filters/https_img.js'
import { sliceStr, onBreak, toast, dTime, copy } from './common/fun.js'
import empower from './components/empower/empower.vue'
import ourLoading from '@/components/our-loading/our-loading.vue'
import searchDate from "./common/dateFunction.js"

//接口
Vue.prototype.$apis = apis;
//请求
Vue.prototype.$http = http;

//-----------------------------------------------------工具函数-----------------------------------------------------------
//深拷贝
Vue.prototype.$copy = copy
//标题长度处理
Vue.prototype.sliceStr == sliceStr
//返回上级
Vue.prototype.$onBreak = onBreak
//提示
Vue.prototype.$toast = toast
//与当前时间计算
Vue.prototype.dTime = dTime
//路径拼接cfg.resourceServer.qiniu
Vue.prototype.$qimg = imgUrl
//时间
Vue.prototype.$searchDate = searchDate
//过滤器
Vue.filter('qimg', imgUrl)
Vue.filter('sliceStr', sliceStr)

//-------------------------------------------------------组件-----------------------------------------------------------

//小程序授权组件
Vue.component('empower', empower)
//遮罩层loading
Vue.component('ourLoading', ourLoading)



Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	...App,
	store
})
app.$mount()
Vue.use(uView);
